package com.laboratory.report.lab02.lab0202;

import lombok.Data;

/**
 * 英雄
 */
@Data
public abstract class Hero {

    /**
     * 名称
     */
    protected String name;

    /**
     * 血量
     */
    protected int flood;

    /**
     * 段位
     */
    protected String level = "倔强青铜";

    /**
     * 攻击力
     */
    protected int attack;

    public Hero(String name, int flood, String level, int attack) {
        this(name, flood, attack);
        this.level = level;
    }

    public Hero(String name, int flood, int attack) {
        this.name = name;
        this.flood = flood;
        this.attack = attack;
    }

    public abstract void skill(Hero hero);
}
